package com.ihelp.service;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ihelp.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-05-23
 */
public interface UserService extends IService<User> {
    public List<User> getAllUser();

    public User getUserById(Integer id);

    public Integer createUser(String nickname, String avatarFileName, String username, String password, String area, Long phoneNumber, String birthday, String personalIntroduction);

    public User getUserByUsernameAndPassword(String username, String password);

    public List<User> getUserByDynamicConditions(Integer id, String nickname, String avatarFileName, String username, String password, String area, Long phoneNumber,
                                           String birthday, String personalIntroduction, Double credit, Double rate, Double accompanyTime, Double responseTime, Integer accompanyNumber);

}
